package com.fruits.util;

public class RegexProperties {

    /**电话号码的正则表达式*/
    public static final String REGEX_PHONE = "^(\\+\\d{2}-)?(\\d{2,3}-)?([1][3,4,5,7,8][0-9]\\d{8})$";

    /**MAC正则表达式*/
    public static final String REGEX_MAC = "/(([a-f0-9]{2}:)|([a-f0-9]{2}-)){5}[a-f0-9]{2}/gi";

    /**匹配playerId位数:8位*/
    public static final String PLAYERID_NUMBER = "[\\d]{8}";

    /**匹配有三位相同的靓号*/
    public static final String BEAUTIFUL_THREE_ALIKE = ".*(([0]{3,})|([1]{3,})|([2]{3,})|([3]{3,})|([4]{3,})|([5]{3,})|([6]{3,})|([7]{3,})|([8]{3,})|([9]{3,})).*";

    /**匹配四位以上顺增的靓号*/
    public static final String BEAUTIFUL_FOUR_ADD = ".*((?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){3}\\d).*";

    /**匹配四位以上顺减的靓号*/
    public static final String BEAUTIFUL_FOUR_DOWN = ".*((?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){3}\\d).*";
}